//
//  ViewController.m
//  TestCase
//
//  Created by Founder on 6/2/15.
//  Copyright (c) 2015 Founder. All rights reserved.
//

#import "ViewController.h"
#import "V6Engine.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    XEngine *engine = [[XEngine alloc] init];
    [engine printSuperClass];
    [engine printCurrentClass];
    
    _array = [[NSMutableArray alloc] initWithObjects:@"x", nil];
    
    dispatch_async(dispatch_get_main_queue(), ^{
        //_array[0] = @"y";
    });
    
    dispatch_async(dispatch_get_main_queue(), ^{
        //self.array[0] = @"z";
    });
    
    int (^simpleBlock)(int, int) = ^(int a, int b) {
        return a + b;
    };
    
    int c = simpleBlock(2, 3);
    
    NSLog(@"%d", c);
}

- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
